<?php
$adminUrl=$_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']));

$adminUrl=str_replace('w/', '', $adminUrl);
$adminUrl=str_replace('w', '', $adminUrl);

header("Location: http://".$adminUrl."?g=Mobile&m=Index&a=login");